/* mixins */

@import "src/mixins.scss";
@include DEBUG();
@include useFontSmoothingOnMacOS();

/* wrapper 公共背景 */

.wrapper-bg {
  /* ... */
}

.container {
  width: 100%;
  padding-top: 0.08rem;
  box-sizing: border-box;
  @include flex_dis();
  @include flex(flex-direction, column);
  @include flex(align-items, center);
  position: relative;
  // z-index: 1;
  background: linear-gradient(to bottom, transparent 0.4rem, #131428 0.4rem);

  /* jackpot */
  .container-jackpot {
    width: 7.26rem;
    height: 2.06rem;
    background-size: 100% 100%;
    position: relative;
    margin-bottom: 0.18rem;

    .container-jackpot__text {
      width: 100%;
      font-size: 0.38rem;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #fffcc2;
      line-height: 0.52rem;
      letter-spacing: 3px;
      position: absolute;
      text-align: center;
      right: 0;
      bottom: 0.52rem;
    }

    .container-jackpot__icon {
      width: 0.3rem;
      height: 0.3rem;
      position: absolute;
      top: 0.94rem;
      right: 0.5rem;
      z-index: 2;
    }
  }

  /* header */
  .accordion {
    position: absolute;
    width: 100%;
    bottom: 0.52rem;
    left: 0;
    @include flex_dis();
    @include flex(justify-content, center);

    img {
      width: 1.24rem;
      height: 0.42rem;
    }
  }

  .animation {
    max-height: 1.38rem;
    transition: all .3s linear;
    overflow: hidden;

    &.up {
      max-height: 1.38rem;
    }

    &.down {
      max-height: 10rem;
    }
  }

  .container-header {
    margin-bottom: 0.18rem;

    /* 标题图 */
    .container-header__title {
      width: 4.74rem;
      height: 0.74rem;
    }
  }

  /* 进度展示 */
  .container-main__progress {
    margin-top: -1.12rem;
    .progress-table {
      width: 6.56rem;
      height: 1.4rem;
      background-size: 100% 100%;
      position: relative;
      margin: 0 auto 0.3rem;

      .progress-table__current {
        width: 1.3rem;
        height: 0.72rem;
        text-align: center;
        font-size: 0.24rem;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffffff;
        line-height: 0.72rem;
        position: absolute;
        background-size: 100% 100%;
      }
    }

    .progress-countdown {
      width: 6.58rem;
      height: 0.54rem;
      background-size: 100% 100%;
      margin: 0 auto;
      text-align: center;
      font-size: 0.24rem;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #feeebd;
      line-height: 0.54rem;
    }
  }
  /* 活动已结束 */
  .container-main__end {
    margin-top: 0.2rem;
    @include flex_dis();
    width: 100%;
    @include flex(justify-content, center);
    div{
      width: 2.74rem;
      height: 0.58rem;
      background: url(src/assets/img/end-year/nvshen/hxover.png) center center/100% no-repeat;
      @include flex_dis();
      @include flex(justify-content, center);
      @include flex(align-items, center);
      p{
        font-size: 0.24rem;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #B3AFC9;
      }
    }
  }

  /* OTHERS */
  .container-main__others {
    width: 6.64rem;
    margin: 0 auto;

    /* GRID */
    .others-header,
    .others-main__item {
      display: grid;
      grid-template-columns: 15% 45% 40%;
      grid-template-rows: 1fr;
      gap: 0px 0px;
      grid-template-areas: "index detail value help";
      justify-items: center;
      align-items: center;
      background: url(src/assets/img/end-year/nvshen/zhitong_bg_list.png) center center/100% no-repeat;
      .index {
        grid-area: index;
      }

      .value {
        grid-area: value;
      }

      .detail {
        grid-area: detail;
      }

      .help {
        grid-area: help;
      }
    }
    .others-main__item_top1{
      background: url(src/assets/img/end-year/nvshen/zhitong_bg_list_top1.png) center center/100% no-repeat;
    }

    .others-header>div {
      margin-top: 0.08rem;
    }

    .others-main__item .detail {
      justify-self: start;
      /* 居左对齐 */
    }

    .others-header {
      background: none;
      width: 100%;
      padding: 0 0.14rem; // padding: 0.1rem;
      box-sizing: border-box;
      height: 0.52rem;
      background-size: 100%;
      background-position: 0 0;
      font-size: 0.2rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #989ac4;
    }

    .others-main {
      width: 100%;
      position: relative;
      z-index: 2;
      >div{
        >img{
          width: 6.3rem;
          height: 0.58rem;
          margin: 0.28rem 0 0.24rem;
        }
        @include flex_dis();
        @include flex(flex-direction, column);
        @include flex(align-items, center);
      }
      /* layout:above footer */
      .others-main__item {
        width: 100%;
        height: 1.28rem;
        // padding: 0 0.2rem;
        box-sizing: border-box;

        margin-bottom: 0.06rem;

        .index span{
          font-size: 0.24rem;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #AFB9E7;
        }

        .value {
          font-size: 0.28rem;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #FFEE85;
        }

        .detail {
          @include flex_dis();
          @include flex(align-items, center);

          .detail-avatar {
            width: 0.88rem;
            height: 0.88rem;
            border-radius: 50%;
            border: 0.02rem solid #ffe7ba;
            margin-right: 0.12rem;
          }

          .detail-info {
            .detail-info--name {
              font-size: 0.24rem;
              font-family: PingFangSC-Medium, PingFang SC;
              font-weight: 500;
              color: #ffffff;
              line-height: 0.34rem;
              margin-bottom: 0.06rem;
            }

            .detail-info--gap {
              font-size: 0.2rem;
              // @include useFontSizeLT12(0.2, left);
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #fefbe1;
              line-height: 0.28rem;
              white-space: nowrap;
            }
          }
        }
      }

      .others-main__spinner {
        padding: 0.22rem 0 0.18rem;
        @include flex_dis();
        @include flex(justify-content, center);
        .spinner-content {
          height: 0.4rem;
          font-size: 0.28rem;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #ffee85;
          line-height: 0.4rem;
          text-align: center;
          vertical-align: bottom;
        }
      }
    }
    .not_li{
      height: 4rem;
      @include flex_dis();
      @include flex(justify-content, center);
      @include flex(align-items, center);
      p{
        font-size: 0.28rem;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffee85;
      }
    }
    .others-footer {
      width: 100%;
      height: 0.58rem;
      background-size: 100%;
      background-position: bottom;
      margin-top: -0.22rem;
    }
  }

  .container-main__noparty {
    width: 100%;
    height: 7rem;
    line-height: 7rem;
    text-align: center;
    font-size: 0.36rem;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #b3afc9;
    text-align: center;
  }

  /* footer */
  .container-footer {
    margin-top: 0.2rem;
    margin-bottom: -1.24rem;
    @include flex_dis();
    @include flex(flex-direction, column);
    @include flex(align-items, center);

    >p {
      // @include useFontSizeLT12(0.2);
      font-size: 0.2rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #7E7E86;
      line-height: 0.28rem;
      margin-bottom: 0.06rem;
    }
  }
}
.myself {
  position: fixed;
  z-index: 999;
  bottom: -0.05rem;
  left: 0;
  margin-bottom: 0 !important;
  width: 7.5rem;
  height: 1.38rem;
  background: url(src/assets/img/end-year/nvshen/mybg.png) no-repeat;
  background-size: 100%;
  display: grid;
  grid-template-columns: 23% 47% 30%;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas: "index detail value";
  justify-items: center;
  align-items: center;

  .index {
    grid-area: index;
  }

  .value {
    grid-area: value;
  }

  .detail {
    grid-area: detail;
  }

  .index span{
    font-size: 0.24rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #AFB9E7;
  }

  .value {
    font-size: 0.28rem;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #FFEE85;
  }

  .detail {
    @include flex_dis();
    @include flex(align-items, center);

    .detail-avatar {
      width: 0.88rem;
      height: 0.88rem;
      border-radius: 50%;
      border: 0.02rem solid #ffe7ba;
      margin-right: 0.12rem;
    }

    .detail-info {
      .detail-info--name {
        font-size: 0.24rem;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffffff;
        line-height: 0.34rem;
        margin-bottom: 0.06rem;
      }

      .detail-info--gap {
        font-size: 0.2rem;
        // @include useFontSizeLT12(0.2, left);
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #fefbe1;
        line-height: 0.28rem;
        white-space: nowrap;
      }
    }
  }
}
.dialog {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.52);
  z-index: 99999;
  top: 0;
  left: 0;
  @include flex_dis();
  @include flex(justify-content, center);
  @include flex(align-items, center);
}
.contain {
  padding: 1.12rem 0 0;
  box-sizing: border-box;
  width: 5.28rem;
  height: 5.16rem;
  position: relative;
  background: url(src/assets/img/end-year/nvshen/guan_log_bg.png) center center/100% no-repeat;

  .close {
    position: absolute;
    right: 0.02rem;
    top: -0.3rem;
    width: 0.38rem;
    height: 0.38rem;

    img {
      width: 100%;
      height: 100%;
    }
  }
  p{
    padding: 0 0.4rem;
    box-sizing: border-box;
    font-size: 0.24rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 0.34rem;
    strong{
      color: #E0C2B5;
    }
  }
}
